
from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    # 获取在线活动
    url(r'^gatherings/$', views.GatheringView.as_view()),
    # 获取单个活动
    url(r'^gatherings/(?P<pk>[^/.]+)/$', views.GatheringInfoView.as_view()),
    # 加入或者取消活动
    url(r'^gatherings/(?P<pk>[^/.]+)/join/$', views.JoinGatherView.as_view()),
]
